import Vue from 'vue'
import Router from 'vue-router'
// import list from './index/list.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'list',
      component: () => import('./index/list.vue'),
      children: [
        {
          path: '/my',
          name: 'my',
          component: () => import('./index/my.vue')
        },
        {
          path: '/shop',
          name: 'shop',
          component: () => import('./index/shop.vue')
        },
        {
          path: '/all',
          name: 'all',
          component: () => import('./index/all.vue')
        },
      ]
    },

  ]
})
